<?php
session_start();

include_once("../../Misc.php");
include_once("../../classCol/UID.php");
include_once("../../classCol/classOracleDb.php");
include_once("../models/fetchers.php");

$srcDbHdr = "USERID_HDR";
$srcDbDtl = "USERID_DTL";

$Db         = new oracleDb;
$CLFetchers = new CLFetchers;

$Db->init($_SESSION["ORCLU"],
          $_SESSION["OPASS"],
          $_SESSION["SID"],
          _NO_COMMENT);

if($Db->connect()){

  $CLFetchers->fetchIsIdExists($Db,
                               $_POST["thisId"],
                               $srcDbHdr,
                               $isExists);

  if($isExists){

  	echo "EXISTS";
  }else{

  	echo "NOT_EXISTS";
  }

  $Db->dc();
}else{

  echo  _CONN_ERROR;
}
?>